//package top.qitun.api.v1;
//
//import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
//
//import top.qitun.user.User;
//import top.qitun.user.UserRepository;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class UserServiceV1 {
//
//    private UserRepository userRepository;
//
//    @Autowired
//    public UserServiceV1(UserRepository userRepository) {
//        this.userRepository = userRepository;
//    }
//
//    @HystrixCommand
//    public User getUserByUsername(String username) {
//        return userRepository.findUserByUsername(username);
//    }
//}
